package com.designpatterns.command.entity;

/**
 * @author Brook
 */
public class Light {
    String light;
    public Light(String livingRoom) {
        this.light = livingRoom;
    }

    public void on() {
        System.out.println(light + "is on");
    }

    public void off() {
        System.out.println(light + " is off");
    }
}
